package org.lyl.taobao.service;

import org.lyl.taobao.api.IUserService;
import org.lyl.taobao.api.entity.User;
import org.lyl.taobao.api.utils.DruidConnectionUtils;
import org.lyl.taobao.dao.IUserDao;
import org.lyl.taobao.dao.impl.UserDaoImpl;

/**
 * @Author: Re
 * @Date: 2021/3/26 19:15
 */
public class UserServiceImpl implements IUserService {
    IUserDao iUserDao=new UserDaoImpl();
    DruidConnectionUtils druidConnectionUtils=new DruidConnectionUtils();
    public boolean insertUser(User user) {
        return iUserDao.insertUser(druidConnectionUtils.getConnection(),user);
    }
}
